<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        body{
            border: 1px solid #62B5EC;
            padding-top: 100px;
        }
        #d1{
            width: 1000px;
            height: 100px;
            background-color: red;
            /*设置固定定位*/
            position: fixed;
            top:0px;
        }
        #d2{
            width: 50px;
            height: 200px;
            background-color: blue;
            position: fixed;
            right: 20px;
            bottom: 20px;
        }
    </style>
</head>
<body>
<div id="d1">div1</div>
<div id="d2">div2</div>
<img src="../b.jpg">
<img src="../b.jpg">
<img src="../b.jpg">
<img src="../b.jpg">
<img src="../b.jpg">
<img src="../b.jpg">
<img src="../b.jpg">
<img src="../b.jpg">
<img src="../b.jpg">


</body>
</html>